package org.zkdn.modules.wlpt.basicinfo.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.jeecg.common.api.vo.Result;
import org.zkdn.modules.wlpt.basicinfo.dto.CrossDTO;
import org.zkdn.modules.wlpt.basicinfo.entity.TCrossing;
import com.baomidou.mybatisplus.extension.service.IService;
import org.zkdn.modules.wlpt.basicinfo.vo.CrossVO;

import java.util.List;

/**
 * @Description: t_crossing
 * @Author: jeecg-boot
 * @Date:   2025-06-18
 * @Version: V1.0
 */
public interface ITCrossingService extends IService<TCrossing> {
    /**
     * 查询，返回列表
     * @param queryWrapper
     * @return
     */
    List<CrossVO> queryList(QueryWrapper queryWrapper);

    /**
     * 分页查询，返回分页列表
     * @param page
     * @param queryWrapper
     * @return
     */
    IPage<CrossVO> queryPageList(IPage<CrossVO> page,
                                 @Param("ew") QueryWrapper queryWrapper);


    /**
     * 添加并校验
     * @param crossDTO
     * @return
     */
    Result saveByValidate(CrossDTO crossDTO);

    /**
     * 更新并校验
     * @param crossDTO
     * @return
     */
    Result updateByValidate(CrossDTO crossDTO);

    /**
     * 删除
     * @param id
     * @return
     */
    Result deleteById(String id);

    /**
     * 批量删除
     * @param ids
     * @return
     */
    Result deleteByIds(String ids);
}
